package com.gwtjs.model;

/**
 * excludeProperty excludeType value
 * simple:
 * title="aGuang"
 * @author aGuang
 *
 */
public class QueryCondition {
	
	public static final String MODE_START = "start";
	public static final String MODE_END = "end";
	public static final String MODE_ANY = "any";
	public static final String MODE_EXACT = "exact";

	/**
	 * 查询的属性
	 */
	private String excludeProperty;
	/**
	 * 查询的值
	 */
	private Object value;
	/**
	 * 运算符>\<\=\>=\<=
	 */
	private String excludeType;

	public QueryCondition() {
	}

	public QueryCondition(String excludeProperty, Object value) {
		super();
		this.excludeProperty = excludeProperty;
		this.value = value;
		this.excludeType = null;
	}

	public QueryCondition(String excludeProperty, Object value,
			String excludeType) {
		super();
		this.excludeProperty = excludeProperty;
		this.value = value;
		this.excludeType = excludeType;
	}

	public String getExcludeProperty() {
		return excludeProperty;
	}

	public void setExcludeProperty(String excludeProperty) {
		this.excludeProperty = excludeProperty;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public String getExcludeType() {
		return excludeType;
	}

	public void setExcludeType(String excludeType) {
		this.excludeType = excludeType;
	}

}
